using System;
using System.Collections;
using System.Collections.Generic;

using ImPM.Data.Base;

namespace ImPM.Data.BusinessObjects
{
    public partial class ResourceTask : BusinessBase<int>
    {
        #region Declarations

		
		private int _taskID = default(Int32);
		private int _resourceID = default(Int32);
		private System.DateTime _work = new DateTime();
		
		
		
        #endregion

        #region Constructors

        public ResourceTask() { }

        #endregion

        #region Methods

        public override int GetHashCode()
        {
            System.Text.StringBuilder sb = new System.Text.StringBuilder();
            
            sb.Append(this.GetType().FullName);
			sb.Append(_taskID);
			sb.Append(_resourceID);
			sb.Append(_work);

            return sb.ToString().GetHashCode();
        }

        #endregion

        #region Properties

		public virtual int TaskID
        {
            get { return _taskID; }
			set
			{
				OnTaskIDChanging();
				_taskID = value;
				OnTaskIDChanged();
			}
        }
		partial void OnTaskIDChanging();
		partial void OnTaskIDChanged();
		
		public virtual int ResourceID
        {
            get { return _resourceID; }
			set
			{
				OnResourceIDChanging();
				_resourceID = value;
				OnResourceIDChanged();
			}
        }
		partial void OnResourceIDChanging();
		partial void OnResourceIDChanged();
		
		public virtual System.DateTime Work
        {
            get { return _work; }
			set
			{
				OnWorkChanging();
				_work = value;
				OnWorkChanged();
			}
        }
		partial void OnWorkChanging();
		partial void OnWorkChanged();
		
        #endregion
    }
}
